#include "Serializer.h"

void Model::Serializer::Encode(const MeshData &obj, const std::string &path)
{
    std::ofstream ofs(path, std::ios::binary);

    Encode(obj, ofs);

    ofs.flush();
    ofs.close();
}

void Model::Serializer::Decode(MeshData &obj, const std::string &path)
{
    std::ifstream ifs(path, std::ios::binary);
    Decode(obj, ifs);
    ifs.close();
}

void Model::Serializer::Encode(const MeshData &obj, std::ofstream &ofs)
{   
    
};

void Model::Serializer::Decode(MeshData &obj, std::ifstream &ifs)
{
}
